package com.matt.domain.rel;

import com.matt.commons.model.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * *******************************
 * Created by Ron.
 * form com.matt
 * on 2017/7/14
 * *******************************
 */
@Entity
@Data
@EqualsAndHashCode(callSuper=true)
@Table(name = "rel_classes_children")
public class RelClassesChildren extends Model {

    @Column
    private String childrenId;

    @Column
    private String classesId;
    //学号
    @Column(columnDefinition = "varchar(100) COMMENT '序号'")
    private String studentId;

    @Column
    private Integer status;
    public static RelClassesChildren of(String childrenId, String classesId){
        RelClassesChildren rel = new RelClassesChildren();
        rel.setChildrenId(childrenId);
        rel.setClassesId(classesId);
        return rel;
    }
}
